package com.huashi.exception;

import java.io.Serializable;

public class CommonToolException extends RuntimeException{

    private static final long serialVersionUID = -7361765213399393700L;



    private String errorCode;

    public CommonToolException(String message){
        super(message);
    }

    public CommonToolException(String errorCode,String message){
        super(message);
        this.setErrorCode(errorCode);
    }

    public CommonToolException(String arg0 ,Throwable arg1){
        super(arg0,arg1);
    }

    public CommonToolException(String errorCode,String arg0,Throwable arg1){
        super(arg0,arg1);
        this.setErrorCode(errorCode);
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
